package com.ts.api.module.match.market.internal.wrapper.model;

import com.ts.api.module.channel.entity.po.ChannelUserFormFieldPO;
import com.ts.api.module.channel.entity.po.ChannelUserRegisterPO;
import lombok.Data;

import java.util.List;

/**
 *  贷超撞库数据实体
 *
 *  @author Pan
 */
@Data
public class MarketDataExchange {

    /** 用户注册对象 */
    private ChannelUserRegisterPO channelUserRegisterPO;
    /** 用户表单对象 */
    private List<ChannelUserFormFieldPO> listUserFormFieldPO;
    /** 用户ip */
    private String ip;

    /**
     *  构建
     *
     *  @param  channelUserRegisterPO
     *  @param  listUserFormFieldPO
     *  @param  ip
     *  @return MarketDataExchange
     */
    public static MarketDataExchange of(ChannelUserRegisterPO channelUserRegisterPO, List<ChannelUserFormFieldPO> listUserFormFieldPO, String ip) {
        MarketDataExchange marketDataExchange = new MarketDataExchange();
        marketDataExchange.setIp(ip);
        marketDataExchange.setListUserFormFieldPO(listUserFormFieldPO);
        marketDataExchange.setChannelUserRegisterPO(channelUserRegisterPO);
        return marketDataExchange;
    }
}
